package com.jokerpan.project.service;

import com.jokerpan.project.commons.ActionResult;
import com.jokerpan.project.entity.UsersPermission;

import java.util.List;
import java.util.Map;

/**
 * @author jokerpan
 */
public interface PermissionsService {

    /**
     * 查询所有数据
     * @param usersPermission
     * @return 数据列表
     */
    Map<String, Object> queryList(UsersPermission usersPermission);

    List<UsersPermission> queryAll();

    /**
     * 新增权限
     * @param usersPermission
     * @return 是否成功
     */
    Boolean add(UsersPermission usersPermission);

    ActionResult update(UsersPermission usersPermission);

    ActionResult deleteById(Integer id);
}
